import request from '@/utils/request'

/**
 * 查看库存流水记录
 * @param {*} params
 * @returns
 */
export function getProductInventoryLogList(params) {
  return request({
    url: '/api/app/product-inventory-log',
    method: 'get',
    baseURL: public_config.labor_api,
    params
  })
}

/**
 * 按Id获取库存流水明细
 * @param {*} id
 * @returns
 */
export function getByIdProductInventoryLog(id) {
  return request({
    url: `/api/app/product-inventory-log/${id}/product-inventory-log`,
    baseURL: public_config.labor_api,
    method: 'get'
  })
}
